package com.tt.fashionWebSite.dao.jpa;

import com.tt.fashionWebSite.dao.KichThuocDao;
import com.tt.fashionWebSite.domain.KhuyenMai;
import com.tt.fashionWebSite.domain.KichThuoc;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by PC on 11/28/14.
 */
@Repository("kichThuoc")
public class KichThuocJpaDao extends GenericJpaDao<KichThuoc,String> implements KichThuocDao {
    public KichThuocJpaDao(){
        super(KichThuoc.class);
    }

    @Override
    public List<KichThuoc> getAllSize(){
        return getEntityManager().createNamedQuery(KichThuoc.GET_ALL_SIZE, KichThuoc.class).getResultList();
    }
}
